//
//  WishCell.m
//  YYPHSpeedJump
//
//  Created by sujiang on 15/12/25.
//  Copyright © 2015年 sujiang. All rights reserved.
//

#import "WishCell.h"

@implementation WishCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setModel:(CommentModel *)model
{
    [self.userImage sd_setImageWithURL:[NSURL URLWithString:model.head_img_url ] placeholderImage:nil];
    self.name.text = model.nickname;
    self.sendTime.text = model.create_time;
    self.commentTextLb.text = model.comment;
    self.zanCountLb.text = [NSString stringWithFormat:@"(%@)", model.up_num];
    if ([model.uped isEqualToString:@"1"]) {
        [self.zanBtn setBackgroundImage:[UIImage imageNamed:@"dz"] forState:(UIControlStateNormal)];
    } else {
        [self.zanBtn setBackgroundImage:[UIImage imageNamed:@"dz01"] forState:(UIControlStateNormal)];
    }
    
    
    _model = model;
}


@end
